package chase.myrewards.beans;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * A class that represents a location
 * 
 * @author Meena Abdou
 * @date 04/27/2013
 */
public class LatLon implements Serializable {
	
	/**
	 * This number must be unique for every class. And it can never change.
	 * You have to generate it automatically by clicking on the class name and
	 * then hitting Ctrl+1.  Then click on Add generated serial version ID. Then
	 * copy these comments on top of the generated id.
	 * 
	 * @serial serialVersionUID
	 */
	private static final long serialVersionUID = -8357734883126471675L;
	
	private String latitude;
	private String longitude;
	private String name;
	private String address;
	private ArrayList<String> promoDes;
	private ArrayList<String> programDes;
	
	public LatLon(){
		latitude = "";
		longitude = "";
		name = "";
		address = "";
		promoDes = new ArrayList<String>();
		programDes = new ArrayList<String>();
	}
	
	public String toString(){
		StringBuffer sbuff = new StringBuffer();
		sbuff.append("\n");
		sbuff.append("Name: " + name);
		sbuff.append("\n");
		sbuff.append("Latitude: " + latitude);
		sbuff.append("\n");
		sbuff.append("Longitude: " + longitude);
		sbuff.append("\n");
		sbuff.append("Address: " + address);
		return sbuff.toString();
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public void insertPromoDes(String promodes){
		this.promoDes.add(promodes);
	}
	public ArrayList<String> getPromoDes() {
		return promoDes;
	}
	public void setPromoDes(ArrayList<String> promoDes) {
		this.promoDes = promoDes;
	}
	
	public void insertProgramDes(String programdes){
		this.programDes.add(programdes);
	}
	public ArrayList<String> getProgramDes() {
		return programDes;
	}
	public void setProgramDes(ArrayList<String> programDes) {
		this.programDes = programDes;
	}
}
